<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue版显示/隐藏</title>
</head>
<body>
<!--
   v-if
   v-show
-->
<div id="app">
    <div v-show="isShow">hello</div>
    <div>
        <button @click="isShow=true">显示</button>
        <button @click="isShow=false">隐藏</button>
        <button @click="isShow=!isShow">切换</button>
    </div>
</div>
</body>
<script src="../../lib/vue.js"></script>
<script>

    new Vue({
        el:'#app',
        data:{
            isShow:true
        }
    })
</script>

</html>